<?php
/*
	辅助插件
*/
defined('BY_JYA') or exit('error');
$list = array(
	array('title'=>'行业集成','list'=>array(
			array('name'=>'jy_weishop','title'=>'商城系统','desc'=>'集各种商城系于一身！','icon'=>''),
			array('name'=>'jy_merchscrm','title'=>'scrm多商户版','desc'=>'企微SCRM多商户版','icon'=>''),
			array('name'=>'jy_liuscrm','title'=>'企微流SCRM','desc'=>'给企业提供一个工作流的应用！','icon'=>''),
			array('name'=>'jy_eduscrm','title'=>'家校沟通','desc'=>'企微教育系基础应用！','icon'=>''),
			array('name'=>'jy_eduscrm','title'=>'政民沟通','desc'=>'政民统计巡查上报，居民上报！','icon'=>''),
	)),
	array('title'=>'运营工具','list'=>array(
			array('name'=>'jy_scrmtask','title'=>'SCRM私域运营/社群/跟进任务','desc'=>'SCRM私域运营/社群/跟进任务','icon'=>''),
			array('name'=>'jy_workliu','title'=>'企业微信工作流','desc'=>'实现日常工作任务库，批量给员工发任务；任务提醒功能','icon'=>''),
			array('name'=>'jy_worker_ewm','title'=>'企微爆客码活码','desc'=>'企微爆客码活码！','icon'=>''),
			array('name'=>'jy_wteamfee','title'=>'企微版团长分销','desc'=>'企微版团长分销，员工是团长'),
	)),
);
foreach($list as &$type){
	foreach($type['list'] as &$p){
		$install = check_permission($p['name']);
		if($install){
			$p['is_install'] = 1;
			$p['is_show'] = 1;
		}else{
			$p['is_install'] = 0;
			$p['is_show'] = 0;
			if($_SESSION['isfounder']){
				$p['is_show'] = 1;
			}
		}
		
	}
}

return  $list;